.download-page {
    font-family: 'Arial', sans-serif;
    max-width: 3600px;
    margin: 0 auto;
    background-color: #f5f5f5;
    min-height: 100vh;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}

.back-button {
    padding: 8px 16px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.2s;
}

.back-button:hover {
    background-color: #e0e0e0;
}

.torrent-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

/* 左侧种子详情 */
.torrent-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.torrent-cover-container {
    background-color: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.cover-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 4px;
    object-fit: contain;
}

.cover-placeholder {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    color: #666;
    border-radius: 4px;
}

.torrent-info-card {
    background-color: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.torrent-title {
    margin: 0 0 16px;
    color: #333;
    font-size: 24px;
}

.torrent-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.torrent-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.meta-item {
    display: flex;
    gap: 8px;
}

.meta-label {
    color: #666;
    font-weight: 500;
}

.meta-value {
    color: #333;
}

.download-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-top: 24px;
    margin-bottom: 24px; /* 添加底部间距 */
}

.download-section h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #333;
}

.download-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.download-button {
    padding: 12px 24px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    flex: 2;
}

.download-button:hover:not(:disabled) {
    background-color: #0d62c9;
}

.download-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.copy-button {
    padding: 12px 24px;
    background-color: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    flex: 1;
}

.copy-button:hover {
    background-color: #e0e0e0;
}

.download-progress {
    margin-top: 16px;
    background-color: #e0e0e0;
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background-color: #1a73e8;
    transition: width 0.3s;
}

.download-progress span {
    position: absolute;
    right: 8px;
    top: -20px;
    font-size: 12px;
    color: #666;
}

.error-message {
    color: #d32f2f;
    background-color: #fde0e0;
    padding: 10px 15px;
    border-radius: 4px;
    margin-top: 16px;
    font-size: 14px;
}

/* 右侧边栏 - 修改为只包含相关资源 */
.torrent-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: fit-content;
}

.related-torrents {
    background-color: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.related-torrents h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #333;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.related-item:hover {
    background-color: #eef0f1;
}

.related-thumbnail {
    width: 60px;
    height: 60px;
    background-color: #e0e0e0;
    border-radius: 4px;
    flex-shrink: 0;
}

.related-item h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

/* 评论部分 - 移动到下载区域下方 */
.comments-section {
    background-color: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 24px;
    grid-column: 1 / -1; /* 跨所有列 */
    width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.comments-section h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #333;
}

.comment-input {
    margin-bottom: 24px;
}

.comment-input textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 80px;
    margin-bottom: 12px;
    resize: vertical;
    font-family: inherit;
}

.comment-actions {
    display: flex;
    justify-content: space-between; /* 关键修改：两端对齐 */
    align-items: center;           /* 垂直居中 */
    gap: 12px;                     /* 元素间距 */
    width: 100%;                   /* 确保容器占满宽度 */
}

.submit-comment {
    padding: 10px 20px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-comment:hover {
    background-color: #0d62c9;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.anonymous-checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.anonymous-checkbox input {
    width: auto;
    margin-right: 8px;
}

.comment-item {
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.comment-author {
    font-weight: 500;
    color: #333;
}

.comment-time {
    color: #666;
}

.comment-content {
    margin-bottom: 12px;
    line-height: 1.5;
}

.reply-input {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.reply-input textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 60px;
    margin-bottom: 8px;
    resize: vertical;
    font-family: inherit;
}

.reply-actions {
    display: flex;
    gap: 8px;
}

.submit-reply, .cancel-reply {
    padding: 6px 12px;
    font-size: 13px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.submit-reply {
    background-color: #1a73e8;
    color: white;
}

.submit-reply:hover {
    background-color: #0d62c9;
}

.cancel-reply {
    background-color: #f0f0f0;
    color: #333;
}

.cancel-reply:hover {
    background-color: #e0e0e0;
}

.loading-message {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}
.comment-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
.comment-content-section {
    flex: 1;
  }
  
.comment-actions {
    display: flex;
    gap: 12px;
    margin-left: auto;
    justify-content: flex-start; /* 保持按钮左对齐基准 */
  }
  
.action-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0; /* 隐藏文字 */
  }
  
  /* 图标样式 */
.icon-like,
.icon-reply,
.icon-delete {
    width: 16px;
    height: 16px;
    color: #666;
  }


.icon-delete {
    width: 16px;
    height: 16px;
    color: red;
}

.delete-button {
    background-color: transparent !important;
    color: #000 !important; /* 强制黑色文字 */
    padding: 6px 12px;
}

  /* 按钮悬停效果 */
.like-button:hover {
    background-color: #e8f0fe;
  }
  
.reply-button:hover {
    background-color: #f0f0f0;
  }

.delete-button:hover {
    background-color: #e8f0fe;
  }
  
  /* 点赞计数显示 */
.like-button span {
    font-size: 13px;
    color: #666;
    margin-left: 4px;
  }

/* 响应式设计 */
@media (max-width: 992px) {
    .torrent-grid {
        grid-template-columns: 1fr;
    }

    .torrent-sidebar {
        order: 2;
    }

    .torrent-details {
        order: 1;
    }

    .comments-section {
        order: 3;
    }
}

@media (max-width: 576px) {
    .torrent-meta {
        grid-template-columns: 1fr;
    }

    .download-actions {
        flex-direction: column;
    }

    .download-button, .copy-button {
        width: 100%;
    }

    .related-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .related-thumbnail {
        width: 100%;
        height: 120px;
    }
}